/* 页面容器样式 */
.paper {
    max-width: 800px;
    margin: 2em auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.paper-head {
    padding: 1em;
    border-bottom: 1px solid hsl(306, 40%, 90%);
    margin-bottom: 1em;
}

.paper-head h3 {
    color: hsl(306, 40%, 25%);
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.paper-body {
    padding: 0 1em;
}

/* 表单样式 */
form {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 2em 0 0 0;
    background: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form .field {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.3em;
    gap: 0.3em;
}

form .field > label {
    width: 100%;
    color: #888;
    font-weight: 400;
    font-size: 0.97rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.1em;
    text-align: left;
}

form .field input,
form .field select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.7em 0.2em;
    border: none;
    border-bottom: 1.5px solid #e0e0e0;
    border-radius: 0;
    color: #222;
    background: #fafafd;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-shadow: none;
}

form .field input:focus,
form .field select:focus {
    outline: none;
    border-bottom: 1.5px solid hsl(306, 40%, 60%);
    background: #fff;
}

form .field .radio-choices {
    display: flex;
    flex-direction: row;
    gap: 1.2em;
    margin-top: 0.1em;
}

form .field .radio-choices .option {
    display: flex;
    align-items: center;
    color: #888;
    font-weight: 400;
    font-size: 0.97rem;
    letter-spacing: 0.01em;
}

form .field .radio-choices input[type="radio"] {
    margin-right: 0.3em;
    accent-color: hsl(306, 40%, 25%);
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.table th {
    background-color: hsl(306, 40%, 25%);
    color: #fff;
    padding: 0.8em;
    text-align: left;
}

.table td {
    padding: 0.8em;
    border-bottom: 1px solid hsl(306, 40%, 90%);
}

.table tr:hover {
    background-color: hsl(306, 40%, 95%);
}

/* 按钮样式 - 确保所有按钮都是紫色 */
.btn {
    color: #eee !important;
    background-color: hsl(306, 40%, 25%) !important;
    border-color: hsl(306, 40%, 25%) !important;
    width: fit-content;
    font-weight: bold;
    padding: 0.375rem 0.75rem;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    letter-spacing: 0.1em;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    background-color: hsl(306, 40%, 35%) !important;
    border-color: hsl(306, 40%, 35%) !important;
}

.btn:disabled {
    background-color: hsl(306, 40%, 80%) !important;
    border-color: hsl(306, 40%, 80%) !important;
    cursor: not-allowed;
}

.btn > a:visited,
.btn > a:link {
    color: #fff !important;
    text-decoration: none;
}

/* 按钮组样式 */
.paper-footer {
    margin-top: 1.5em;
    padding: 1em;
    border-top: 1px solid hsl(306, 40%, 90%);
    text-align: center;
}

.paper-footer > .btns {
    display: flex;
    justify-content: center;
    gap: 1em;
}

/* 状态栏样式 */
.statusbar {
    position: fixed;
    top: 1em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.message {
    padding: 0.8em 1.5em;
    background-color: hsl(306, 40%, 95%);
    color: hsl(306, 40%, 25%);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message.error {
    background-color: #fee;
    color: #c00;
}

.message.error button {
    margin-left: 1em;
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    font-weight: bold;
}